package com.crm.common.model.Enum;

/**
 * 线索Id枚举
 * @author luojie
 * @date 2021/2/5 14:14
 */
public enum ClueNumberEnum {

    BEI_JING("110000","BJ"),

    TIAN_JIN("120000","TJ"),

    HE_BEI("130000","HB"),

    SHAN_XI("140000","SX"),

    NEI_MENG_GU("150000","NMG"),

    LIAO_NING("210000","LN"),

    JI_LIN("220000","JL"),

    HEI_LONG_JIANG("230000","HLJ"),

    SHANG_HAI("310000","SH"),

    JIANG_SU("320000","JS"),

    ZHE_JIANG("330000","ZJ"),

    ANHUI("340000","AH"),

    FUJIAN("350000","FJ"),

    JIANGXI("360000","JX"),

    SHAN_DONG("370000","SD"),

    HE_NAN("410000","HN"),

    HU_BEI("420000","HB"),

    HU_NAN("430000","HN"),

    GUANG_DONG("440000","GD"),

    GUANG_XI("450000","GX"),

    HAI_NAN("460000","HN"),

    CHONG_QING("500000","CQ"),

    SI_CHUAN("510000","SC"),

    GUI_ZHOU("520000","GZ"),

    YUN_NAN("530000","YN"),

    XI_ZANG("540000","XZ"),

    SHAN_XI1("610000","SX"),

    GAN_SU("620000","GS"),

    QING_HAI("630000","QH"),

    NING_XIA("640000","NX"),

    XIN_JIANG("650000","XJ"),

    TAI_WAN("710000","TW"),

    XIANG_GANG("810000","XG"),

    AO_MEN("820000","AM"),

    HAI_WAI("990000","HW");



    private String clueNumber;
    private String clueNumberInfo;

    ClueNumberEnum(String clueNumber, String clueNumberInfo){
        this.clueNumber = clueNumber;
        this.clueNumberInfo = clueNumberInfo;
    }

    public static String getValue(String clueNumber) {
        for (ClueNumberEnum ele : values()) {
            if(ele.clueNumber.equals(clueNumber)) return ele.clueNumberInfo;
        }
        return null;
    }

    public String getClueNumber(){
        return clueNumber;
    }

    public String getClueNumberInfo(){
        return clueNumberInfo;
    }
}
